package com.wpw.dream.net.helloword.action;

import java.util.List;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

import com.wpw.dream.util.packages.PackageUtil;

@Controller
public class HelloWorldAction {
	
	@RequestMapping("helloword")
	public String index(ModelMap model) {
		model.addAttribute("name", "helloword");
		return "index";
	}
	
	public static void main(String[] args) {
		List<String> packageClasses = PackageUtil.getPackageClasses("com.wpw.dream");
		for (String string : packageClasses) {
			System.out.println(string);
		}
	}

}
